package com.sun.entity.users;

import com.sun.entity.BaseEntity;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;
import org.hibernate.annotations.SQLDelete;

/**
 * MP自动填充Handler
 *
 * @Author sun
 * @CreateTime 2025/9/2 02:09
 */

@Data
@Table(name = "permissions")
@Entity
@SQLDelete(sql = "update permissions set deleted = 1 where id = ?")
public class Permission extends BaseEntity   {
    @Id
    private Long id;
    private Long menuId; //菜单id
    private String controller;// 控制器
    private String action;//        方法
}
